package com.example.wxback.dao;

import com.example.wxback.model.MessageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

/**
 * 消息列表
 */
public interface IUserMessageDetailDao {

    int insertMessage(@Param("messageInfo") MessageInfo messageInfo);

    List<MessageInfo> getMessageList(@Param("conversationId") int conversationId);

    int deleteExpiredMessage(@Param("date") Date date);
}
